
public class Animal {
    private String name;
    private String color;
    public int age;
    public Animal(){

    }
    public Animal(String name,String color,int age){
        this.name=name;
        this.color=color;
        this.age=age;
    }
    public void SetName(String name){
        this.name=name;
    }
    public void setColor(String color){
        this.color=color;
    }
    public void setAge(int age){
        this.age=age;
    }
    public String getName(){
        return name;
    }
    public String getColor(){
        return color;
    }
    public void getAge(){
        System.out.println("Age is"+age);
    }
    
}
